package pers.zc.activiti.event;

import lombok.Data;
import org.springframework.context.ApplicationEvent;

/**
 * @Annotion: 事件
 * @ClassName: TestEvent
 * @Author: Lin Fuyuan
 * @Date: 2019/10/29  10:44
 * @Version: 1.0
 */
@Data
public class TestEvent extends ApplicationEvent {
    private String name;
    private String school;

    public TestEvent(Object source,String name,String school) {
        super(source);
        System.out.println("类名:"+source.getClass().getName());
        System.out.println("这是一个事件的构造!!!!!继承了ApplicationEvent类");
        this.name = name;
        this.school = school;
    }
}
